package com.user.controller;


import com.apis.login.AppLoginApi;

import com.user.service.ApploginService;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.user.dtos.LoginDto;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RequestMapping("/user/api/v1/login")
@RestController
public class ApploginController implements AppLoginApi {
    @Autowired
    private ApploginService apploginService;

    @PostMapping("login_auth")
    @Override
    public ResponseResult login(@RequestBody LoginDto dto) {
        return apploginService.login(dto);
    }


}
